package gmomo.test.gui;

import org.jivesoftware.smack.packet.Message;

import gmomo.MessageListener;

public class GUIMessageListener implements MessageListener{
	
	private MainFrame main;
	
	public GUIMessageListener(MainFrame main) {
		this.main = main;
	}

	public void messageReceived(Message message) {
		main.updateMsgWin(message.getFrom(), message.getBody());
	}

}
